package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

public class ChatLog extends BaseEntity {
    /**
     * Primary Key, auto_increment
     */
    @Excel(name = "消息编号")
    private int id;

    @Excel(name = "话术序号")
    private String chatId;

    /**
     * Template ID
     */
    @Excel(name = "剧本id")
    private int templateId;

    /**
     * User type, 0: sender, 1: receiver
     */
    @Excel(name = "消息来源")
    private String userType;

    /**
     * Client number
     */
    @Excel(name = "粉丝号码")
    private String clientNumber;

    /**
     * Customer number
     */
    @Excel(name = "客服号码")
    private String customerNumber;

    /**
     * Chat type, 0: text, 1: image
     */
    @Excel(name = "消息类型")
    private String chatType;

    /**
     * Text or image URL (original text)
     */
    @Excel(name = "消息")
    private String text;

    /**
     * Creation time
     */
    @Excel(name = "创建时间")
    private Date createTime;

    /**
     * Translated text
     */
    private String translateText;

    /**
     * Chat book ID
     */

    private Long userId;

    private Long deptId;

    private Integer msgAck = -1;

    // Getters and setters

    private String msgId;

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public Integer getMsgAck() {
        return msgAck;
    }

    public void setMsgAck(Integer msgAck) {
        this.msgAck = msgAck;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getClientNumber() {
        return clientNumber;
    }

    public void setClientNumber(String clientNumber) {
        this.clientNumber = clientNumber;
    }

    public String getCustomerNumber() {
        return customerNumber;
    }

    public void setCustomerNumber(String customerNumber) {
        this.customerNumber = customerNumber;
    }

    public String getChatType() {
        return chatType;
    }

    public void setChatType(String chatType) {
        this.chatType = chatType;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTranslateText() {
        return translateText;
    }

    public void setTranslateText(String translateText) {
        this.translateText = translateText;
    }

    public String getChatId() {
        return chatId;
    }

    public void setChatId(String chatId) {
        this.chatId = chatId;
    }

    public int getTemplateId() {
        return templateId;
    }

    public void setTemplateId(int templateId) {
        this.templateId = templateId;
    }

    @Override
    public String toString() {
        return "ChatEntity{" +
                "id=" + id +
                ", userType='" + userType + '\'' +
                ", clientNumber='" + clientNumber + '\'' +
                ", customerNumber='" + customerNumber + '\'' +
                ", chatType='" + chatType + '\'' +
                ", text='" + text + '\'' +
                ", createTime=" + createTime +
                ", translateText='" + translateText + '\'' +
                ", chatId='" + chatId + '\'' +
                ", templateId=" + templateId +
                '}';
    }
}
